package com.xyy.jd_clund.service;

import com.kingdee.service.ApiException;
import com.kingdee.service.data.entity.*;
import com.xyy.jd_clund.dto.jd_erp.ProducrDetail;
import org.omg.CORBA.PUBLIC_MEMBER;

import java.util.List;
import java.util.Map;

public interface JdDataInfoService {
    //获取金蝶客户信息
    CustomerListRes getCustomer(CustomerCustomerListReq customerCustomerListReq);

    //导入金蝶订单接口
    SaveReply saveOrder(SalOrderSaveReq orderSaveReq) throws ApiException;

    //金蝶客户信息导入
    SaveReply saveCustomer(CustomerSaveReq customerSaveReq) throws ApiException;

    /**
     * 获取商品信息
     *
     * @param params 查询条件
     * @return
     */
    MaterialListReply productInfo(MaterialMaterialListReq params);

    /**
     * 根据商品编码 获取商品计量单位id
     */
    ProducrDetail getUnitId(String number);

    /**
     * 获取库存
     */
    Map<String, List<InvListResRow>> getStock(InventoryInvListReq invListReq);

    /**
     * 获取审核订单
     */
    List<String> getOrderComp(List<String> orderNos);

    /**
     * 出库明细回传
     *
     * @param list
     */
    List<SalOutBoundDetailReply> getOrderDeliver(List<String> list);

    /**
     * 根据客户编码 查询客户id
     */
    String getCustomerIdByNumber(String number);


}
